#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main()
{
    string str = "ZhaoJIELOVEZHANGYING";
    vector<char> vecch;

    for(int i = 40; i < 90; ++i)
        vecch.push_back(i);
    string str2(vecch.begin(), vecch.end());

    for(string::iterator is = str.begin(); is != str.end(); ++is)
    {
        if (isupper(*is))
        {
            str.erase(is);
            continue;
        }
        if (islower(*is))
        {
            *is = toupper(*is);
            continue;
        }

    }

    cout << str << endl;
    cout << str2 << endl;
    return 0;
}
